home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / accessibility / nsIAccessibleEvent.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  8KB  |  286 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAccessibleEvent.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIAccessibleEvent_h__
  6. #define __gen_nsIAccessibleEvent_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIAccessible; /* forward declaration */
  18.  
  19. class nsIAccessibleDocument; /* forward declaration */
  20.  
  21. class nsIDOMNode; /* forward declaration */
  22.  
  23. #define NS_ACCESSIBLE_EVENT_TOPIC "accessible-event"
  24.  
  25. /* starting interface:    nsIAccessibleEvent */
  26. #define NS_IACCESSIBLEEVENT_IID_STR "87f29033-c4a6-40a3-ac7a-3ba391f9992d"
  27.  
  28. #define NS_IACCESSIBLEEVENT_IID \
  29.   {0x87f29033, 0xc4a6, 0x40a3, \
  30.     { 0xac, 0x7a, 0x3b, 0xa3, 0x91, 0xf9, 0x99, 0x2d }}
  31.  
  32. /**
  33.  * An interface for accessibility events listened to
  34.  * by in-process accessibility clients, which can be used
  35.  * to find out how to get accessibility and DOM interfaces for
  36.  * the event and its target. To listen to in-process accessibility invents,
  37.  * make your object an nsIObserver, and listen for accessible-event by 
  38.  * using code something like this:
  39.  *   nsCOMPtr<nsIObserverService> observerService = 
  40.  *     do_GetService("@mozilla.org/observer-service;1", &rv);
  41.  *   if (NS_SUCCEEDED(rv)) 
  42.  *     rv = observerService->AddObserver(this, "accessible-event", PR_TRUE);
  43.  *
  44.  * @status UNDER_REVIEW
  45.  */
  46. class NS_NO_VTABLE nsIAccessibleEvent : public nsISupports {
  47.  public: 
  48.  
  49.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEEVENT_IID)
  50.  
  51.   /**
  52.    * The type of event, based on the enumerated event values
  53.    * defined in this interface.
  54.    */
  55.   /* readonly attribute unsigned long eventType; */
  56.   NS_IMETHOD GetEventType(PRUint32 *aEventType) = 0;
  57.  
  58.   /**
  59.    * The nsIAccessible associated with the event.
  60.    * May return null if no accessible is available
  61.    */
  62.   /* readonly attribute nsIAccessible accessible; */
  63.   NS_IMETHOD GetAccessible(nsIAccessible * *aAccessible) = 0;
  64.  
  65.   /**
  66.    * The nsIAccessibleDocument that the event target nsIAccessible
  67.    * resides in. This can be used to get the DOM window,
  68.    * the DOM document and the window handler, among other things.
  69.    */
  70.   /* readonly attribute nsIAccessibleDocument accessibleDocument; */
  71.   NS_IMETHOD GetAccessibleDocument(nsIAccessibleDocument * *aAccessibleDocument) = 0;
  72.  
  73.   /**
  74.    * The nsIDOMNode associated with the event
  75.    * May return null if accessible for event has been shut down
  76.    */
  77.   /* readonly attribute nsIDOMNode DOMNode; */
  78.   NS_IMETHOD GetDOMNode(nsIDOMNode * *aDOMNode) = 0;
  79.  
  80.   enum { EVENT_CREATE = 32768U };
  81.  
  82.   enum { EVENT_DESTROY = 32769U };
  83.  
  84.   enum { EVENT_SHOW = 32770U };
  85.  
  86.   enum { EVENT_HIDE = 32771U };
  87.  
  88.   enum { EVENT_REORDER = 32772U };
  89.  
  90.   enum { EVENT_FOCUS = 32773U };
  91.  
  92.   enum { EVENT_STATE_CHANGE = 32778U };
  93.  
  94.   enum { EVENT_LOCATION_CHANGE = 32779U };
  95.  
  96.   enum { EVENT_NAME_CHANGE = 32780U };
  97.  
  98.   enum { EVENT_DESCRIPTIONCHANGE = 32781U };
  99.  
  100.   enum { EVENT_VALUE_CHANGE = 32782U };
  101.  
  102.   enum { EVENT_PARENTCHANGE = 32783U };
  103.  
  104.   enum { EVENT_HELPCHANGE = 32784U };
  105.  
  106.   enum { EVENT_DEFACTIONCHANGE = 32785U };
  107.  
  108.   enum { EVENT_ACCELERATORCHANGE = 32786U };
  109.  
  110.   enum { EVENT_SELECTION = 32774U };
  111.  
  112.   enum { EVENT_SELECTION_ADD = 32775U };
  113.  
  114.   enum { EVENT_SELECTION_REMOVE = 32776U };
  115.  
  116.   enum { EVENT_SELECTION_WITHIN = 32777U };
  117.  
  118.   enum { EVENT_ALERT = 2U };
  119.  
  120.   enum { EVENT_FOREGROUND = 3U };
  121.  
  122.   enum { EVENT_MENUSTART = 4U };
  123.  
  124.   enum { EVENT_MENUEND = 5U };
  125.  
  126.   enum { EVENT_MENUPOPUPSTART = 6U };
  127.  
  128.   enum { EVENT_MENUPOPUPEND = 7U };
  129.  
  130.   enum { EVENT_CAPTURESTART = 8U };
  131.  
  132.   enum { EVENT_CAPTUREEND = 9U };
  133.  
  134.   enum { EVENT_MOVESIZESTART = 10U };
  135.  
  136.   enum { EVENT_MOVESIZEEND = 11U };
  137.  
  138.   enum { EVENT_CONTEXTHELPSTART = 12U };
  139.  
  140.   enum { EVENT_CONTEXTHELPEND = 13U };
  141.  
  142.   enum { EVENT_DRAGDROPSTART = 14U };
  143.  
  144.   enum { EVENT_DRAGDROPEND = 15U };
  145.  
  146.   enum { EVENT_DIALOGSTART = 16U };
  147.  
  148.   enum { EVENT_DIALOGEND = 17U };
  149.  
  150.   enum { EVENT_SCROLLINGSTART = 18U };
  151.  
  152.   enum { EVENT_SCROLLINGEND = 19U };
  153.  
  154.   enum { EVENT_MINIMIZESTART = 22U };
  155.  
  156.   enum { EVENT_MINIMIZEEND = 23U };
  157.  
  158.   enum { EVENT_ATK_PROPERTY_CHANGE = 256U };
  159.  
  160.   enum { EVENT_ATK_SELECTION_CHANGE = 257U };
  161.  
  162.   enum { EVENT_ATK_TEXT_CHANGE = 258U };
  163.  
  164.   enum { EVENT_ATK_TEXT_SELECTION_CHANGE = 259U };
  165.  
  166.   enum { EVENT_ATK_TEXT_CARET_MOVE = 260U };
  167.  
  168.   enum { EVENT_ATK_VISIBLE_DATA_CHANGE = 261U };
  169.  
  170.   enum { EVENT_ATK_TABLE_MODEL_CHANGE = 272U };
  171.  
  172.   enum { EVENT_ATK_TABLE_ROW_INSERT = 273U };
  173.  
  174.   enum { EVENT_ATK_TABLE_ROW_DELETE = 274U };
  175.  
  176.   enum { EVENT_ATK_TABLE_ROW_REORDER = 275U };
  177.  
  178.   enum { EVENT_ATK_TABLE_COLUMN_INSERT = 276U };
  179.  
  180.   enum { EVENT_ATK_TABLE_COLUMN_DELETE = 277U };
  181.  
  182.   enum { EVENT_ATK_TABLE_COLUMN_REORDER = 278U };
  183.  
  184.   enum { EVENT_ATK_LINK_SELECTED = 279U };
  185.  
  186.   enum { EVENT_ATK_WINDOW_ACTIVATE = 280U };
  187.  
  188.   enum { EVENT_ATK_WINDOW_CREATE = 281U };
  189.  
  190.   enum { EVENT_ATK_WINDOW_DEACTIVATE = 288U };
  191.  
  192.   enum { EVENT_ATK_WINDOW_DESTROY = 289U };
  193.  
  194.   enum { EVENT_ATK_WINDOW_MAXIMIZE = 290U };
  195.  
  196.   enum { EVENT_ATK_WINDOW_MINIMIZE = 291U };
  197.  
  198.   enum { EVENT_ATK_WINDOW_RESIZE = 292U };
  199.  
  200.   enum { EVENT_ATK_WINDOW_RESTORE = 293U };
  201.  
  202. };
  203.  
  204. /* Use this macro when declaring classes that implement this interface. */
  205. #define NS_DECL_NSIACCESSIBLEEVENT \
  206.   NS_IMETHOD GetEventType(PRUint32 *aEventType); \
  207.   NS_IMETHOD GetAccessible(nsIAccessible * *aAccessible); \
  208.   NS_IMETHOD GetAccessibleDocument(nsIAccessibleDocument * *aAccessibleDocument); \
  209.   NS_IMETHOD GetDOMNode(nsIDOMNode * *aDOMNode); \
  210.  
  211. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  212. #define NS_FORWARD_NSIACCESSIBLEEVENT(_to) \
  213.   NS_IMETHOD GetEventType(PRUint32 *aEventType) { return _to GetEventType(aEventType); } \
  214.   NS_IMETHOD GetAccessible(nsIAccessible * *aAccessible) { return _to GetAccessible(aAccessible); } \
  215.   NS_IMETHOD GetAccessibleDocument(nsIAccessibleDocument * *aAccessibleDocument) { return _to GetAccessibleDocument(aAccessibleDocument); } \
  216.   NS_IMETHOD GetDOMNode(nsIDOMNode * *aDOMNode) { return _to GetDOMNode(aDOMNode); } \
  217.  
  218. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  219. #define NS_FORWARD_SAFE_NSIACCESSIBLEEVENT(_to) \
  220.   NS_IMETHOD GetEventType(PRUint32 *aEventType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEventType(aEventType); } \
  221.   NS_IMETHOD GetAccessible(nsIAccessible * *aAccessible) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessible(aAccessible); } \
  222.   NS_IMETHOD GetAccessibleDocument(nsIAccessibleDocument * *aAccessibleDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessibleDocument(aAccessibleDocument); } \
  223.   NS_IMETHOD GetDOMNode(nsIDOMNode * *aDOMNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDOMNode(aDOMNode); } \
  224.  
  225. #if 0
  226. /* Use the code below as a template for the implementation class for this interface. */
  227.  
  228. /* Header file */
  229. class nsAccessibleEvent : public nsIAccessibleEvent
  230. {
  231. public:
  232.   NS_DECL_ISUPPORTS
  233.   NS_DECL_NSIACCESSIBLEEVENT
  234.  
  235.   nsAccessibleEvent();
  236.  
  237. private:
  238.   ~nsAccessibleEvent();
  239.  
  240. protected:
  241.   /* additional members */
  242. };
  243.  
  244. /* Implementation file */
  245. NS_IMPL_ISUPPORTS1(nsAccessibleEvent, nsIAccessibleEvent)
  246.  
  247. nsAccessibleEvent::nsAccessibleEvent()
  248. {
  249.   /* member initializers and constructor code */
  250. }
  251.  
  252. nsAccessibleEvent::~nsAccessibleEvent()
  253. {
  254.   /* destructor code */
  255. }
  256.  
  257. /* readonly attribute unsigned long eventType; */
  258. NS_IMETHODIMP nsAccessibleEvent::GetEventType(PRUint32 *aEventType)
  259. {
  260.     return NS_ERROR_NOT_IMPLEMENTED;
  261. }
  262.  
  263. /* readonly attribute nsIAccessible accessible; */
  264. NS_IMETHODIMP nsAccessibleEvent::GetAccessible(nsIAccessible * *aAccessible)
  265. {
  266.     return NS_ERROR_NOT_IMPLEMENTED;
  267. }
  268.  
  269. /* readonly attribute nsIAccessibleDocument accessibleDocument; */
  270. NS_IMETHODIMP nsAccessibleEvent::GetAccessibleDocument(nsIAccessibleDocument * *aAccessibleDocument)
  271. {
  272.     return NS_ERROR_NOT_IMPLEMENTED;
  273. }
  274.  
  275. /* readonly attribute nsIDOMNode DOMNode; */
  276. NS_IMETHODIMP nsAccessibleEvent::GetDOMNode(nsIDOMNode * *aDOMNode)
  277. {
  278.     return NS_ERROR_NOT_IMPLEMENTED;
  279. }
  280.  
  281. /* End of implementation class template. */
  282. #endif
  283.  
  284.  
  285. #endif /* __gen_nsIAccessibleEvent_h__ */
  286.